<template>
  <div class="app-container">

    <el-button type="primary" @click="openConfirmComponent"> 打开自定义组件择框 </el-button>

    <br>

  </div>
</template>

<script>
import FrmConten from './FrmContent'
export default {
  name: 'A00015',

  props: {},

  data() {
    return {
      visible: false,
      component: () => import('./FrmContent')
    }
  },
  created() {},
  mounted() {},
  methods: {

    // 自定义快捷组件开发.// 后面可以参考这个开发,待优化
    openConfirmComponent() {
      this.$BaseModal({ title: '弹框自定义组件', component: FrmConten,
        callback: (call_back) => {
          this.aPiCallback(call_back)
        }
      }) // 这里可以可以直接回调写方法)
    },

    aPiCallback(value) {
      console.log('提交的值', value)
      this.$message.success('value')
    //   const zyry_sql = `select * from mng_room where mr_room_zddm like "%${value}"`
      // const zyry_sql = `select DISTINCT jsh from t_ryxx_ksssyry where ryzt='10'`
    //   return this.$PrisonServer.queryList(zyry_sql).then(res => {
    //     console.log('apiMethod', res)
    //     this.$message.success('api提交返回' + JSON.stringify(res))
    //   })
    }

  }
}
</script>

<style lang="scss" scoped>

</style>
